import request from '@/utils/request';

// 查询文件存储类型列表
export function getStorage() {
	return request({
		url: '/mall/storage/typeList',
		method: 'get',
	});
}

export function createFileType(data) {
	return request({
		url: '/mall/storage/addType',
		method: 'post',
		data,
	});
}

export function removeType(id = []) {
	return request({
		url: '/mall/storage/removeType',
		method: 'post',
		data: {
			id,
		},
	});
}
